package top.infopub.mgr.sys.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.sys.dao.VisitlogDao;
import top.infopub.mgr.sys.service.VisitlogService;
import top.infopub.mgr.sys.vo.VisitLogVo;
import top.infopub.model.sys.Visitlog;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;


@Service
public class VisitlogServiceImpl extends GenericServiceImpl<Visitlog, String> implements VisitlogService {

    @Autowired
    private VisitlogDao visitlogDao;

    @Override
    public GenericDao<Visitlog, String> getDao() {
        return visitlogDao;
    }

    @Override
    public Page<Visitlog> selectDataByCondition(Page<Visitlog> page, VisitLogVo visitLogVo) {
        PageHelper.startPage(page.getPageNum(), page.getPageSize());
        return (Page<Visitlog>)visitlogDao.selectVisitlogByCondition(visitLogVo);
    }

}